{if $type == 1}
    {foreach item=sitem from=$item.slist}
        <div class="subItems">
            {image userid=$sitem.userid viewid=$AppUI->id type=1 small=2 class="border30 lFloat"}
            <div class="scontent">
                <h5><a href="{vfriend_username userid=$sitem.userid viewid=$AppUI->id}">{$sitem.userid|ouser}</a></h5>
                <ul>
                    <li class="firstChild"><span class="iTime">{$sitem.postdate|convert_date}</span></li>
                    <li><a href="javascript:likeCmt({$item.srcid},{$sitem.bcommentid},{$item.type},'{$item._id}');" class="sLike">Thích</a> (<span id="like_cmt_{$item._id}_{$sitem.bcommentid}">{$sitem.tlike|number_format:"0":",":"."}</span>)</li>
                </ul>
                <p>{$sitem.content|str_emoticon}</p>
            </div>
        </div>
    {/foreach}
{elseif $type == 2}       
    {foreach item=sitem from=$item.slist}
        <div class="subItems">
            {image userid=$sitem.userid viewid=$AppUI->id type=1 small=2 class="border30 lFloat"}
            <div class="scontent">
                <h5><a href="{vfriend_username userid=$sitem.userid viewid=$AppUI->id}">{$sitem.userid|ouser}</a></h5>
                <ul>
                    <li class="firstChild"><span class="iTime">{$sitem.postdate|convert_date}</span></li>
                    <li><a href="javascript:likeCmt({$item.srcid},{$sitem.icommentid},{$item.type},'{$item._id}');" class="sLike">Thích</a> (<span id="like_cmt_{$item._id}_{$sitem.icommentid}">{$sitem.tlike|number_format:"0":",":"."}</span>)</li>
                </ul>
                <p>{$sitem.content|str_emoticon}</p>
            </div>
        </div>
    {/foreach}
{elseif $type == 3}     
    {foreach item=sitem from=$item.slist}
        <div class="subItems">
            {image userid=$sitem.userid viewid=$AppUI->id type=1 small=2 class="border30 lFloat"}
            <div class="scontent">
                <h5><a href="{vfriend_username userid=$sitem.userid viewid=$AppUI->id}">{$sitem.userid|ouser}</a></h5>
                <ul>
                    <li class="firstChild"><span class="iTime">{$sitem.postdate|convert_date}</span></li>
                    <li><a href="javascript:likeCmt({$item.srcid},{$sitem.ubcommentid},{$item.type},'{$item._id}');" class="sLike">Thích</a> (<span id="like_cmt_{$item._id}_{$sitem.ubcommentid}">{$sitem.tlike|number_format:"0":",":"."}</span>)</li>
                </ul>
                <p>{$sitem.content|str_emoticon}</p>
            </div>
        </div>
    {/foreach}
{elseif $type == 4}
	{foreach item=sitem from=$item.slist}
        <div class="subItems">
            {image userid=$sitem.userid viewid=$AppUI->id type=1 small=2 class="border30 lFloat"}
            <div class="scontent">
                <h5><a href="{vfriend_username userid=$sitem.userid viewid=$AppUI->id}">{$sitem.userid|ouser}</a></h5>
                <ul>
                    <li class="firstChild"><span class="iTime">{$sitem.postdate|convert_date}</span></li>
                    <li><a href="javascript:likeCmt({$item.srcid},{$sitem.ocommentid},{$item.type},'{$item._id}');" class="sLike">Thích</a> (<span id="like_cmt_{$item._id}_{$sitem.ocommentid}">{$sitem.tlike|number_format:"0":",":"."}</span>)</li>
                    
                </ul>
                <p>{$sitem.content|str_emoticon}</p>
            </div>
        </div>
    {/foreach}
{elseif $type == 5}
	{foreach item=sitem from=$item.slist}
        <div class="subItems">
            {image userid=$sitem.userid viewid=$AppUI->id type=1 small=2 class="border30 lFloat"}
            <div class="scontent">
                <h5><a href="{vfriend_username userid=$sitem.userid viewid=$AppUI->id}">{$sitem.userid|ouser}</a></h5>
                <ul>
                    <li class="firstChild"><span class="iTime">{$sitem.postdate|convert_date}</span></li>
                    <li><a href="javascript:likeCmt({$item.srcid},{$sitem.ncommentid},{$item.type},'{$item._id}');" class="beLevel">Điểm hùng biện</a> (<span id="like_cmt_{$item._id}_{$sitem.ncommentid}">{$sitem.tlike|number_format:"0":",":"."}</span>)</li>
                </ul>
                <p>{$sitem.content|str_emoticon}</p>
            </div>
        </div>
    {/foreach}
{elseif $type == 6}
	{foreach item=sitem from=$item.slist}
        <div class="subItems">
            {image userid=$sitem.userid viewid=$AppUI->id type=1 small=2 class="border30 lFloat"}
            <div class="scontent">
                <h5><a href="{vfriend_username userid=$sitem.userid viewid=$AppUI->id}">{$sitem.userid|ouser}</a></h5>
                <ul>
                    <li class="firstChild"><span class="iTime">{$sitem.postdate|convert_date}</span></li>                    
                </ul>
                <p>{star point=$sitem.rate person=1 result=0} - {$sitem.content|str_emoticon}</p>
            </div>
        </div>
    {/foreach}
{/if}